<html>
<body>
<h1>Create a new template</h1>
<form method="post">{% csrf_token %}
<table border ="1">
<tr><td>Name</td><td><input name="name" type="text"  /></td></tr>
<tr><td>Has Location?</td><td> <input name="hasLocation" type="checkbox"  /><br /></td></tr>
<tr><td>Has Payment?</td><td> <input name="hasPayment" type="checkbox"  /><br /></td></tr>
<tr><td>Has Media?</td><td> <input name="hasMedia" type="checkbox"  /><br /></td></tr>
<tr><td>Has LiveStream?</td><td> <input name="hasLiveStream" type="checkbox"  /><br /></td></tr>
<tr><td>Has Social Marketing?</td><td> <input name="hasSocialMarketing" type="checkbox"  /><br /></td></tr>
<tr><td>Has Agenda?</td><td> <input name="hasAgenda" type="checkbox"  /><br /></td></tr>
<tr><td><input type="submit" value="submit""/></td></tr></table>
<select name="location_id">
{% for loc in Locations %}
    <option value="{{ loc.id }}">{{ loc.name }}</option>
{% endfor %}
</select>
<select name="media_id">
{% for med in Medias %}
    <option value="{{ med.id }}">{{ med.id }}</option>
{% endfor %}
</select>
<select name="agenda_id">
{% for agenda in Agendas %}
    <option value="{{ agenda.id }}">{{ agenda.title }}</option>
{% endfor %}
</select>
<select name="socialmarketing_id">
{% for soc in socialMarketings %}
    <option value="{{ soc.id }}">{{ soc.id }}</option>
{% endfor %}
</select>
<select name="payment_id">
{% for pay in Payments %}
    <option value="{{ pay.id }}">{{ pay.paymentAmount }}</option>
{% endfor %}
</select>
</form>
</body>


</html>